<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<!-- 1.引入外部js -->
		<script src="./js/vue@3.3.4.global.js"></script>
	</head>
	<body>
		<div id="app">
			<ul v-if="show">
				<li>香蕉</li>
				<li>苹果</li>
				<li>榴莲</li>
			</ul>
			<ul v-show="show2">
				<li>体恤</li>
				<li>牛仔裤</li>
				<li>篮球鞋</li>
			</ul>
		</div>
	</body>
	<script>
		//3.建Vue的实例
		const app = Vue.createApp({
			data(){
				return {
					show: true,
					show2: false
				}
			}
		})
		// 4.挂载
		app.mount('#app')
	</script>
</html>